<template>
  <div>
    <el-form ref="form" :model="deptForm" label-width="100px">
      <el-form-item label="部门名称">
        <el-input v-model="deptForm.name" />
      </el-form-item>
      <el-form-item label="部门编码">
        <el-input v-model="deptForm.code" />
      </el-form-item>
      <el-form-item label="部门负责人">
        <el-select v-model="deptForm.manager" placeholder="请选择负责人">
          <el-option label="区域一" value="shanghai" />
          <el-option label="区域二" value="beijing" />
        </el-select>
      </el-form-item>
      <el-form-item label="部门介绍">
        <el-input v-model="deptForm.introduce" type="textarea" />
      </el-form-item>
      <el-form-item class="btn">
        <el-button type="primary" @click="hSubmit">确定</el-button>
        <el-button @click="hCancel">取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: 'DeptDialog',
  data() {
    return {
      deptForm: {
        name: '', // 部门名称
        code: '', // 部门编码
        manager: '', // 负责人
        introduce: '' // 介绍
      }
    }
  },
  methods: {
    // 点击确定
    hSubmit() {},
    // 点击取消
    hCancel() {}

  }
}
</script>

<style scoped lang='scss'>
form.el-form {
  padding: 0px 60px 0px 20px;
}

.el-select {
    width: 100%;
}
</style>
